




using Hotpot.Infrastructure;
using Hotpot.Models;

namespace Hotpot.Extensions
{
    public static class PagingInfoExtensions
    {
        public static CachePartition ToCachePartition(this PagingInfo pagingInfo)
        {
            return new CachePartition(pagingInfo.Index, pagingInfo.Size);
        }
    }
}